<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"htth://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:pe="http://primefaces.org/ui/extensions" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui" xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</h:head>
<h:body>
	<h:outputStylesheet library="css/template" name="style.css" />
	<h:form id="form">
		<center>
			<h:panelGrid>
				<p:panel>
					<f:facet name="header">
						<h:outputText value="Acesso ao Sistema" />
					</f:facet>

					<h:panelGrid columns="2" id="painel">
						<h:graphicImage value="/resources/images/eagle.jpg" styleClass="logo-sistema-login" />
						<h:panelGrid columns="1">
							<p:messages showDetail="false" globalOnly="false" autoUpdate="true" />
							<h:panelGrid columns="2">
								<h:outputText value="Login" styleClass="negrito" />
								<p:inputText required="true" requiredMessage="O Login é obrigatório" value="#{loginBean.login}" />

								<h:outputText value="Senha" styleClass="negrito" />
								<p:password required="true" requiredMessage="A Senha é obrigatório" value="#{loginBean.senha}" />

								<br />
								<h:panelGrid columns="2">
									<p:commandButton value="Logaraa" process=":form @this" update="@form" actionListener="#{loginBean.logarSistemaActionEvent}" />
									<p:commandButton value="Limpar" update="@form" />
								</h:panelGrid>
							</h:panelGrid>
						</h:panelGrid>
					</h:panelGrid>

					<f:facet name="footer">
						<h:outputText value="VersÃ£o" />
						<h:outputText value="#{aplicacaoScope.versaoSistema}" />
						<h:outputText value="#{usuarioNavegacaoSession.home}" />
						<h:outputText value="#{procedimentosSistema.init()}" />
					</f:facet>
				</p:panel>
			</h:panelGrid>
		</center>
	</h:form>
</h:body>
</html>